$("#attachmentModalContent").html("<%= escape_javascript( render 'attachment_modal', attachment: @attachment)%>");
$('#attachmentModal').modal('show')
$(".modal-header").click();